package com.yuexun.dhdoctor.module.survey.api;


import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.survey.bean.StartSurveyBean;
import com.yuexun.dhdoctor.module.survey.bean.SurveyAnswerDtlBean;
import com.yuexun.dhdoctor.module.survey.bean.SurveyDateBean;
import com.yuexun.dhdoctor.module.survey.bean.SurveyDtlBean;
import com.yuexun.dhdoctor.module.survey.bean.SurveyTypeBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by wangt on 2017/8/22.
 */

public interface SurveyApi {

    //查询模板类型列表
    @FormUrlEncoded
    @POST("inquireSurveyTemplateTypeList.json?")
    Observable<BaseEntity<SurveyTypeBean>> getSurveyTypeList(@FieldMap Map<String, String> praise);

    //查询个人的院内调查分页列表
    @FormUrlEncoded
    @POST("inquireUserSurveyPageList.json")
    Observable<BaseEntity<SurveyDateBean>> getSurveyList(@FieldMap Map<String, String> praise);

    //新建院内调查参与内容(开始院内调查)
    @FormUrlEncoded
    @POST("startSurveyAnswer.json?")
    Observable<BaseEntity<StartSurveyBean>> startSurvey(@FieldMap Map<String, String> praise);
    //查询院内调查模板详情
    @FormUrlEncoded
    @POST("inquireSurveyTemplateDtl.json")
    Observable<BaseEntity<SurveyDtlBean>> getSurveyDtl(@FieldMap Map<String, String> praise);
    //答卷人员详情
    @FormUrlEncoded
    @POST("inquireSurveyAnswerDetail.json?")
    Observable<BaseEntity<SurveyAnswerDtlBean>> getSurveyAnswerDtl(@FieldMap Map<String, String> praise);

    //更新院内调查内容
    @FormUrlEncoded
    @POST("updateSurveyAnswer.json?")
    Observable<BaseEntity<String>> updateSurveyAnswer(@FieldMap Map<String, String> praise);
}
